<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册 - 游戏平台</title>
    <style>
        /* 基础样式 */
        body {
            font-family: 'Poppins', sans-serif;
            margin: 0;
            padding: 0;
            background: linear-gradient(135deg, #1a1a2e, #16213e);
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        /* 注册容器 */
        .register-container {
            background: rgba(255, 255, 255, 0.1);
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            width: 350px;
            text-align: center;
        }

        .register-container h2 {
            font-size: 24px;
            margin-bottom: 20px;
        }

        .register-container input {
            width: 100%;
            padding: 10px;
            margin-bottom: 15px;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
        }

        .register-container input::placeholder {
            color: #ccc;
        }

        .register-container button {
            width: 100%;
            padding: 12px;
            background: #ff5722;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .register-container button:hover {
            background: #e64a19;
        }

        .register-container .login-link {
            margin-top: 15px;
            font-size: 14px;
            color: #ccc;
        }

        .register-container .login-link a {
            color: #ff5722;
            text-decoration: none;
        }

        .register-container .login-link a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <!-- 注册容器 -->
    <div class="register-container">
        <h2>注册</h2>
        <input type="text" placeholder="用户名" required>
        <input type="email" placeholder="邮箱" required>
        <input type="password" placeholder="密码" required>
        <input type="password" placeholder="确认密码" required>
        <button type="submit">注册</button>
        <div class="login-link">
            已有账号？<a href="/login.html" onclick="showLoginForm()">立即登录</a>
        </div>
    </div>

    <script>
        function showLoginForm() {
            alert("显示登录表单");
            // 这里可以跳转到登录页面或弹出登录弹窗
        }
    </script>
</body>
</html>